package com.xnyzc.lhy.mis.mapper.cashwithdrawal;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.finance.entity.cashwithdrawal.OaDCashWithdrawal;
import com.xnyzc.lhy.mis.entity.result.cms.cashwithdrawal.OaDCashWithdrawalResults;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 司机提现表 Mapper 接口
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-18
 */
public interface OaDCashWithdrawalMapper extends BaseMapper<OaDCashWithdrawal> {


    /**
     * 获取提现记录列表
     *
     * @param iPage：分页器
     * @param oaDCashWithdrawalResults：查询条件
     * @return
     */
    IPage<OaDCashWithdrawalResults> getOaDCashWithdrawalResultsList(IPage iPage, OaDCashWithdrawalResults oaDCashWithdrawalResults);

    /**
     * 导出提现记录
     * @param withdrawalNumber
     * @param cityCode
     * @param driverName
     * @param withdrawalProgress
     * @param beginTime
     * @param overTime
     * @return
     */
    List<OaDCashWithdrawalResults> exportOaDCashWithdrawalResultsList(
            @Param("withdrawalNumber") String withdrawalNumber,
            @Param("cityCode") String cityCode,
            @Param("cityCodes") List<String> cityCodes,
            @Param("driverName") String driverName,
            @Param("withdrawalProgress") String withdrawalProgress,
            @Param("beginTime") Date beginTime,
            @Param("overTime") Date overTime
    );


}
